package com.dw.etl.core;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

import java.util.TimeZone;

@SpringBootApplication(scanBasePackages = {"com.dw.etl"})
@MapperScan(value = {"com.dw.etl.core.mapper","com.dw.etl.common.base.mapper","com.dw.etl.core.schedu.mapper"})
@EnableDiscoveryClient
@EnableFeignClients
@EnableBatchProcessing
public class EtlCoreApplication {
    public static void main(String[] args) {
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        SpringApplication.run(EtlCoreApplication.class, args);
    }
}

